<?php
$host = "localhost";
$user = "root";
$pass = "";
$db ="eeg";
$koneksi = mysql_connect($host, $user, $pass);
if (!$koneksi) {
echo "Koneksi ke server tidak berhasil";
};
$database = mysql_select_db($db);
if (!$database) {
echo "Koneksi ke database tidak berhasil";
}
mysql_select_db($db) or die ("Database not Found !");
?>
<form role="form" id="form1" name="form1" method="post" action="tampil.php">
<div class="form-group">
                                            <label>Selects</label>
                                            <select name ="tanggal" class="form-control">
<?php $sqldata = "SELECT * FROM tanggal";
	$hasil = mysql_query($sqldata);
	while($data=mysql_fetch_array($hasil))
		{?>
		
		
                                                <option name="tanggal" value="<?php  echo $data['Tanggal']; ?>" ><?php  echo $data['Tanggal']; ?></option>
                                                
                                           
		
		
		


	<?php }


  
	?>
	 </select>
                                        </div>
										</div>
										<button type="submit" class="btn btn-default">Submit</button>
                                           <br><br><br><br><br><br><br><br>
                                        </div>
										
										</form>